java.lang.Object
edu.uky.ai.ml.nn.Error
public abstract class Error
extends java.lang.Object
An error function quantifies the difference between an expected value and
an actual value. This particular error function is called the sum squared
error.
Author:
Stephen G. Ware
Constructor Summary
Constructors
Constructor
Description
Error ()
Method Summary
All Methods Static Methods Concrete Methods
Modifier and Type
Method
Description
static double
evaluate (double[] v1,
double[] v2)
Calculates the sum squared error of two vectors of equal length.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Details
public static final double evaluate (double[] v1,
double[] v2)
Calculates the sum squared error of two vectors of equal length.
Parameters:
v1 - first vector
v2 - second vector
Returns:
the sum squared error